﻿@using MvcOSGi.Shell.Models
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title - My ASP.NET MVC Application</title>
    <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    <meta name="viewport" content="width=device-width" />
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
    @Scripts.Render("~/bundles/jquery")
    <script type="text/javascript" src="/Scripts/cufon-yui.js"></script>
    <script type="text/javascript" src="/Scripts/arial.js"></script>
    <script type="text/javascript" src="/Scripts/cuf_run.js"></script>
    <script type="text/javascript">
        PageId = 0;
        $(function () {
            $('li[itemid="' + PageId + '"]').addClass("active");
        });
    </script>
</head>
<body>
    <header>
        <div class="header">
            <div class="header_resize">
                <div class="logo">
                    <h1><a href="/">OSGi.NET</a> <small>put your slogan here</small></h1>
                </div>
                <div class="menu_nav">
                    <ul>
                        @{
                            var viewModel = UIShell.OSGi.BundleRuntime.Instance.GetFirstOrDefaultService<ApplicationViewModel>();
                            if (viewModel != null)
                            {
                                foreach (var mainMenuItem in viewModel.MainMenuItems.OrderBy(item => item.Order))
                                {
                                    <li itemid="@mainMenuItem.Order"><a href="@mainMenuItem.URL">@mainMenuItem.Text</a> </li>
                                }
                            }
                        }
                    </ul>
                </div>
                <div class="clr"></div>
            </div>
        </div>

       
    </header>
    <div class="content">
        <div class="content_resize">
            <div class="mainbar">
                @RenderSection("featured", required: false)
                <section class="content-wrapper main-content clear-fix">
                    @RenderBody()
                </section>
            </div>
            <div class="sidebar">
                <div class="searchform">
                    <form id="formsearch" name="formsearch" method="post" action="#">
                        <span>
                            <input name="editbox_search" class="editbox_search" id="editbox_search" maxlength="80" value="Search our ste:" type="text" />
                        </span>
                        <input name="button_search" src="/images/search_btn.gif" class="button_search" type="image" />
                    </form>
                </div>
                <div class="gadget">
                    <h2 class="star"><span>Sidebar</span> Menu</h2>
                    <div class="clr"></div>
                    <ul class="sb_menu">
                        
                         @{
                            if (viewModel != null)
                            {
                                foreach (var sidebarItem in viewModel.SidebarMenuItems.OrderBy(item => item.Order))
                                {
                                    <li itemid="@sidebarItem.Order"><a href="@sidebarItem.URL">@sidebarItem.Text</a> </li>
                                }
                            }
                        }

                        @* <li><a href="#">Home</a></li>
                        <li><a href="#">TemplateInfo</a></li>
                        <li><a href="#">Style Demo</a></li>
                        <li><a href="#">Blog</a></li>
                        <li><a href="#">Archives</a></li>*@
                    </ul>
                </div>
                <div class="gadget">
                    <h2 class="star"><span>Sponsors</span></h2>
                    <div class="clr"></div>
                    <ul class="ex_menu">
                        <li><a href="http://www.dreamtemplate.com">DreamTemplate</a><br />
                            Over 6,000+ Premium Web Templates</li>
                        <li><a href="http://www.templatesold.com/">TemplateSOLD</a><br />
                            Premium WordPress &amp; Joomla Themes</li>
                        <li><a href="http://www.imhosted.com">ImHosted.com</a><br />
                            Affordable Web Hosting Provider</li>
                        <li><a href="http://www.myvectorstore.com">MyVectorStore</a><br />
                            Royalty Free Stock Icons</li>
                        <li><a href="http://www.evrsoft.com">Evrsoft</a><br />
                            Website Builder Software &amp; Tools</li>
                        <li><a href="http://www.csshub.com/">CSS Hub</a><br />
                            Premium CSS Templates</li>
                    </ul>
                </div>
            </div>
            <div class="clr"></div>
        </div>
    </div>

    <footer>
        <div class="footer">
            <div class="footer_resize">
                <p class="lf">&copy; Copyright <a href="#">MyWebSite</a>.</p>
                <p class="rf">Layout by Atomic <a href="http://www.atomicwebsitetemplates.com/">Website Templates</a></p>
                <div class="clr"></div>
            </div>
        </div>
    </footer>

    @RenderSection("scripts", required: false)
    
</body>
</html>
